<!DOCTYPE html>
<html>
	<head>
		<meta charset="UTF-8" />
		<title>qwe</title>
	</head>
	<body>
		<script type="text/javascript" >
			//一个错误的示范
			/* function VueComponent(){
				console.log('---VueComponent---')
			}
			function extend (){
				return VueComponent
			} */

			//Vue真正的做法
			function extend (){
				const Sub = function VueComponent(){
					console.log('---VueComponent---')
				}
				return Sub
			}

			const School = extend({})
			const Welcome = extend({})

			console.log('@',School)
			console.log('#',Welcome)

			console.log(School === Welcome) 
		</script>
	</body>
</html>